/*
 * adc.h
 *
 *  Created on: Jan 9, 2022
 *      Author: xulong666
 */

#ifndef HARDWARE_ADC_H_
#define HARDWARE_ADC_H_
#include "ch32v10x_gpio.h"
#include "ch32v10x_adc.h"


#define  ADC_YAW        0
#define  ADC_THRUST     1
#define  ADC_ROLL       2
#define  ADC_PITCH      3
#define  ADC_BAT        4


void adc_init(void);
void ADC_Filter(u16* adc_val);
u16 getAdcValue(u8 axis);


#endif /* HARDWARE_ADC_H_ */
